<?php
class District extends Eloquent
{
    public static $timestamps = false;

    public function city()
    {
        return $this->belongs_to('City');
    }

    public function wards()
    {
        return $this->has_many('Ward');
    }


    public function get_anchors()
    {
        $anchors = array();
    }

    public static function all_by_city($city_id)
    {
        return static::where_city_id($city_id)->get();
    }
}